/**
 * 处理信息
 * @param data string
 */
export function handleMessage(data){
    try {
        const data = JSON.parse(e.data);
        if(data.type === 'usersInfos'){
            delete data['type'];
            for (let key in data){
                if(that.$common.getSessionStorageValues('userLoginInfo.id') === data[key]['uid'] || typeof data[key] !== 'object'){
                    continue;
                }
                that.himself.userName = data[key]['username'];
                that.himself.score = data[key]['score'];
            }
        }
        console.log(data);
    } catch (error) {
        console.log(e.data);
    }
}